 <template>
  <div>
    <button @click="odd">降序</button>
  </div>
</template>
 <script>
export default {
  data() {
    return {};
  },
  methods: {
    odd(){
      //commit接到mutations封装好的方法
      this.$store.commit("jx");
    }
  },
  computed: {},
};
</script>
 <style lang='css' scoped>
button {
  position: fixed;
  left: 80px;
  top: 0px;
}
</style>